<?php $this->widget('DealOnMain') ?>
<?php if(isset($newUser)):?>
	<?php $this->beginWidget('Dialog', array(
    	'id'=>'registration-dialog',
      	// additional javascript options for the dialog plugin
      	'options'=>array(
        	'title'=>'Регистрация',
          	'autoOpen'=>true,
//			'width'=>'800',
      	),
 	));
 
 		$this->renderPartial('/user/_registration', array('model'=>$newUser));
 
 	$this->endWidget('zii.widgets.jui.CJuiDialog'); ?>
 <?php elseif(isset($punishedUser)): ?>
 	<?php $this->beginWidget('Dialog', array(
    	'id'=>'registration-dialog',
      	// additional javascript options for the dialog plugin
      	'options'=>array(
        	'title'=>'Регистрация',
          	'autoOpen'=>true,
//			'width'=>'800',
      	),
 	));
 			
 		$this->renderPartial('/user/_punished', array('model'=>$punishedUser));
 		$this->renderPartial('/user/_registration', array('model'=>$model));
 
 	$this->endWidget('zii.widgets.jui.CJuiDialog'); ?>
 <?php endif; ?>
 
 